﻿<%@ Page Language="C#" MasterPageFile="~/view/Home.Master" AutoEventWireup="true"
    Codebehind="info.aspx.cs" Inherits="Roaming.view.info" Title="Viettel Roaming" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphHome" runat="server">
    <div class="body">
	<div class="bg_tip">

		<div class="menu_botom"><a href="/View/index.html">Home</a></div>
		<div class="line_menu_botom"></div>
		<div class="menu_botom"><a href="/view/roaming.html">Roaming</a></div>
		<div class="line_menu_botom"></div>
		<div class="menu_botom"><a href="/view/news.html">News</a></div>
		<div class="line_menu_botom"></div>
		<div class="menu_botom"><a href="/View/help.html">Help</a></div>

	</div>
</div>
<div class="body">
	<div class="spape"></div>
</div>
<% if (iCateId == 92)
   {%>
    <%if (ds != null && ds.Tables[0].Rows.Count > 0)
      {
          int line = 0; %>
        <%int iCount = 0; for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
          {
              iCount += 1;
              
        %>
        <%if ((iCount % cols) == 1)
          {%>
        <div class="body">
            <%} %>
            <div class="box_icon<%=cols%>"><a href="/<%=ds.Tables[0].Rows[i]["categoryId"].ToString()%>/InfoDetails.html"><img src="../images/<%=ds.Tables[0].Rows[i]["categoryName"].ToString()%>.png" alt="" border="0"/></a></div>          
    
            <%if (((iCount % cols) == 0) || (iCount == ds.Tables[0].Rows.Count))
              {%>
            <div class="spape">
            </div>
        </div>  
            
                    <%int jCount = 0; for (int j = line * cols; j < (line + 1) * cols; j++)
                      {
                          jCount += 1;
        %>
        <%if ((jCount % cols) == 1)
          {%>
        <div class="body">
            <%} %>
            <% try
               {%>
            <div class="box_icon<%=cols%>"><a href="/<%=ds.Tables[0].Rows[j]["categoryId"].ToString()%>/usefulInfoDetail.html"><%=ds.Tables[0].Rows[j]["categoryName"].ToString()%></a></div>
            
            <%}
              catch (Exception ex)
              {
                  ex.ToString(); %>
            <%} %>
            
            <%if ((jCount % cols) == 0)
              {%>
            <div class="spape">
            </div>
        </div>
        <%}%>
         <%} line++; %>
        
               
        <%}%>        
        <%}%>
        <% 
    ds.Dispose();
}%>   
   <%}
     else
     {%>
            <asp:Repeater ID="rptList" runat="server">
                <ItemTemplate>
          <div class="body">
	        <div class="icon_arrow"><img src="../images/icon_arrow.gif" alt="" /></div>
	        <div class="noi_dung_dam"><strong><a href="/<%# DataBinder.Eval(Container.DataItem, "categoryId").ToString()%>/info.html">
                                    <%--<%# DataBinder.Eval(Container.DataItem, "categoryName").ToString()%>--%>
                                    <%#getTopByCate_Title(DataBinder.Eval(Container.DataItem, "categoryId").ToString())%>
                                </a></strong></div>
        </div>
        <div class="body">
	        <div class="spape"></div>
        </div>
        <div class="body">
	        <div class="icon_weather"><img src="<%=ConfigurationManager.AppSettings["ImageUrl"].ToString()%><%#getTopByCate_img(DataBinder.Eval(Container.DataItem, "categoryId").ToString())%>" alt=""/></div>
	        <div class="nd3"><%#getTopByCate(DataBinder.Eval(Container.DataItem, "categoryId").ToString())%></div>

        </div>
        <div class="body">
	        <div class="spape"></div>
                </ItemTemplate>
    </asp:Repeater>
<%} ds.Dispose();%>
    <div class="body">
        <div class="paper">
            <%=strPageLink%> <a href="/view/index.html">Home</a>
        </div>
    </div>
    <div style="clear:both;"><br /></div>
</asp:Content>
